﻿<%@ Page Title="产品信息管理" Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="productmanage.aspx.cs" Inherits="productmanage" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
    <link type="text/css" href="dist/css/bootstrap.css" rel="Stylesheet" />
    <link type="text/css" href="CSS/productmanage.css" rel="Stylesheet" />
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
<div class="menu">
    <div class="butcl">
        <button type="button" class="btn-default btn" onclick="location.href='product_input.aspx'" >添加产品</button>
    </div>
    <div class="mid">
        <div class="search-box" >
            <input type="text" class="form-control"  placeholder="Search" />
       
        </div>
        <button type="submit" class="btn btn-default button">提交</button>
    </div>
    <div style="display:table-cell;width:300px;" ></div>
</div>
    <asp:GridView ID="GridView1" runat="server" BackColor="White" 
        BorderColor="White" BorderStyle="Ridge" BorderWidth="2px" CellPadding="3" 
        CellSpacing="1" GridLines="None" Height="337px" Width="705px" 
        AutoGenerateColumns="False" HorizontalAlign="Center"  OnRowDeleting="delete">
        <Columns>
            <asp:BoundField DataField="PRODUCT_ID" HeaderText="产品ID"/>
            
            <asp:BoundField DataField="PRODUCT_NAME" HeaderText="产品名称"/>

            <asp:BoundField DataField="CREDITS_RATE" HeaderText="积分兑换比例" />

            <asp:BoundField DataField="PRODUCT_SORT" HeaderText="产品分类" />
            <asp:BoundField DataField="PRODUCT_INTRO" HeaderText="产品简介" />
            <asp:ImageField DataImageUrlField="PRODUCT_IMAGE" HeaderText="图片"  ControlStyle-Width="200px"></asp:ImageField>
           <asp:BoundField DataField="SPECIAL" HeaderText="是否为精选" />
             <asp:CommandField HeaderText="删除" ShowDeleteButton="true" ButtonType="Button" />
             

        </Columns>
        <FooterStyle BackColor="#C6C3C6" ForeColor="Black" />
        <HeaderStyle BackColor="#4A3C8C" Font-Bold="True" ForeColor="#E7E7FF" />
        <PagerStyle BackColor="#C6C3C6" ForeColor="Black" HorizontalAlign="Right" />
        <RowStyle BackColor="#DEDFDE" ForeColor="Black" />
        <SelectedRowStyle BackColor="#9471DE" Font-Bold="True" ForeColor="White" />
        <SortedAscendingCellStyle BackColor="#F1F1F1" />
        <SortedAscendingHeaderStyle BackColor="#594B9C" />
        <SortedDescendingCellStyle BackColor="#CAC9C9" />
        <SortedDescendingHeaderStyle BackColor="#33276A" />
    </asp:GridView>
<div style="text-align:center;margin:10px;">
  
   <asp:Label ID="label_tag" runat="server" Text="如果您想发布精选产品，请在下面的输入框输入产品ID并单击确认按钮" />
</div>
<table style="margin-left:auto;margin-right:auto;">
    <tr>
        <td style="text-align:center" >
        <div class="search-box">
            <asp:TextBox ID="textbox1" runat="server" CssClass="form-control"   Text="" />
        </div>
        <asp:Button ID="button1" runat="server" Text="确认发布" CssClass="btn btn-primary"  onclick="button1_Click"/>
        </td>
    </tr>
</table>
</asp:Content>

